package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.FriendshipComment;
import cn.wolfcode.trip.base.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FriendshipCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FriendshipComment entity);

    FriendshipComment selectByPrimaryKey(Long id);

    List<FriendshipComment> selectAll();

    int updateByPrimaryKey(FriendshipComment entity);

    int selectTotalCountForUnreadComment(User currentUser);

    List<FriendshipComment> selectForComment(@Param("beCommentId") Long id, @Param("read") Boolean read);

    void updateRead(Long friendshipCommentId);
}